home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group99a.txt
/
000186_icon-group-sender _Tue Sep 7 16:58:37 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
4KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id QAA07136
for icon-group-addresses; Tue, 7 Sep 1999 16:57:41 -0700 (MST)
Message-Id: <199909072357.QAA07136@baskerville.CS.Arizona.EDU>
From: "Bob Alexander" <bobalex@ix.netcom.com>
To: "Garry" <memphis@macconnect.com>, <icon-group@optima.CS.Arizona.EDU>
Subject: Re: Is open(..,"b") broken in MPW Icon 9.0?
Date: Thu, 2 Sep 1999 20:26:54 -0700
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
I'm the author of MPW Icon, and as far as I know it hasn't been maintained
since my last update. I don't remember exactly when that was, but it's been
at least, I'd guess, 3 years. That version was very solid, although I don't
know what's happened with MPW since then. Last I knew they were talking
about dropping official support and releasing the source code. Currently,
I'm more involved with the dark side and seem to only have Windows boxes
around, so I can't really even check your bug. So... all I'm offering is
sympathy.
I really enjoyed using MPW and Icon together -- Icon's a great language and
they are a natural pair!
I personally never used the "b" option. There weren't any any complaints
about it (until now), but then the intersection of MPW users and "b" option
users is probably pretty sparse :-)
The MPW Icon source code is available, and the Icon open() function
translates to a variant of fopen(). Check the source code to see what
fopen() option it uses, and then either:
- change it to something that works with MPW (if possible) and rebuild.
- stick with the copy method you're using now.
I would guess that it is trying to use an fopen() option that works under
Unix but not under MPW.
Sorry I can't offer any real support on this. Feel free to ask any more
questions you may have -- I'll do my best to answer.
-- Bob
----- Original Message -----
From: Garry <memphis@macconnect.com>
To: <icon-group@optima.CS.Arizona.EDU>
Sent: Thursday, September 02, 1999 7:53 AM
Subject: Is open(..,"b") broken in MPW Icon 9.0?
> The most up-to-date Icon available for the Macintosh MPW environment is
> version 9.0, which I think may have been implemented by Bob Alexander
> (email address?). I've implemented most of an outline processor / note
> organizer for MPW using Icon; maybe I'll proceed to try using it for
> keeping source code in outline form, BUT after more than a month of fun
> with Icon I've run into a problem!! I can't open a file for update
> (read/write). When I follow the Icon practice of opening my file with
> "b" mode I find that I can read it but I can not write to the file. For
> example if I execute
> f := open( "Testfile", "b" )
> seek( f )
> writes( f, "**" )
> where "Testfile" is a small test file created previously, then I get the
> message
> Run-time error 214
> input/output error
>
> I've tried specifying "r+" mode or "b+r" or "ub" mode without success.
> As a test I opened the same file in "w" mode and proved that I was able
> to write it (destroying the previous contents) but I can not find a way
> to write to random locations.
>
> BTW, is any progress being made on Icon 9.3 for Macintosh?
>
> Advice, or just sympathy, will be appreciated. Right now my fall-back
> solution is to rewrite the entire file just to update the 8 bytes which
> holds my note ID counter.
>
> --
> Garry
> Tech Writer & Freelance Programmer
>
>